package com.heu.blood.transfusion.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heu.blood.common.utils.PageUtils;
import com.heu.blood.transfusion.entity.TransfusionAgreementEntity;
import com.heu.blood.transfusion.vo.TransfusionAgreementVo;

import java.util.Map;

/**
 * 
 *
 * @author myq
 * @email 596921409@qq.com
 * @date 2023-08-03 18:45:33
 */
public interface TransfusionAgreementService extends IService<TransfusionAgreementEntity> {

    PageUtils queryPage(Map<String, Object> params);

    TransfusionAgreementEntity queryByPatientId(String patientId);
    TransfusionAgreementEntity queryByTransfusionId(String transfusionId);

    /**
     * 获取输血申请同意书的打印预览内容
     * @param transfusionId
     * @return
     */
    TransfusionAgreementVo getAgreement(String transfusionId);
}

